package beanstao.util.store.common;

import java.util.Collection;
import java.util.Map;
import java.util.Set;

import beanstao.util.json.JsonLib;

import com.google.common.collect.Maps;

public class DeviceStatusMap implements Map<String, DeviceStatus>
{
	Map<String, DeviceStatus> _InnerMap = Maps.newHashMap();

	@Override
	public String toString()
	{
		return JsonLib.fromObject(_InnerMap);
	}

	@Override
	public void clear()
	{
		_InnerMap.clear();
	}

	@Override
	public boolean containsKey(Object key)
	{
		return _InnerMap.containsKey(key);
	}

	@Override
	public boolean containsValue(Object value)
	{
		return _InnerMap.containsValue(value);
	}

	@Override
	public Set<java.util.Map.Entry<String, DeviceStatus>> entrySet()
	{
		return _InnerMap.entrySet();
	}

	@Override
	public DeviceStatus get(Object key)
	{
		return _InnerMap.get(key);
	}

	@Override
	public boolean isEmpty()
	{
		return _InnerMap.isEmpty();
	}

	@Override
	public Set<String> keySet()
	{
		return _InnerMap.keySet();
	}

	@Override
	public DeviceStatus put(String key, DeviceStatus value)
	{
		return _InnerMap.put(key, value);
	}

	@Override
	public void putAll(Map<? extends String, ? extends DeviceStatus> m)
	{
		_InnerMap.putAll(m);
	}

	@Override
	public DeviceStatus remove(Object key)
	{
		return _InnerMap.remove(key);
	}

	@Override
	public int size()
	{
		return _InnerMap.size();
	}

	@Override
	public Collection<DeviceStatus> values()
	{
		return _InnerMap.values();
	}

}
